const mongoose = require('../db')

var user = new mongoose.Schema({
    mobile:{//手机号码
        type:String,
        default:''
    },
    password:{//密码
        type:String,
        default:''
    },
    openid:{//微信id表示
        type:String,
        default:''
    },
    avatarUrl:{//头像
        type:String,
        default:''
    },
    user_name:{//微信昵称
        type:String,
        default:'小白用户'
    },
    user_id:Number,
    sex:{
        type:String,
        default:'3'
    }
})

module.exports = mongoose.model('user',user)

